home *** CD-ROM | disk | FTP | other *** search
/ My Neighborhood / My Neighborhood.iso / mac / MacFiles / ExitDry.Dxr / 00081.ls < prev    next >
Encoding:
Text File  |  1997-11-21  |  696 b   |  25 lines

  1. on exitFrame
  2.   global randomized, exitReward, exitRequest, rewardLocs, requestLocs, NewCity, curLoc, HIDELOC, dummyList
  3.   puppetSprite(16, 1)
  4.   if randomized then
  5.     set temp to getOne(NewCity, curLoc)
  6.     set exitReward to getAt(rewardLocs, temp)
  7.     set exitRequest to getAt(requestLocs, temp)
  8.     if exitReward = EMPTY then
  9.       set T to random(count(dummyList))
  10.       set exitReward to getAt(dummyList, T)
  11.     end if
  12.     if (HIDELOC = curLoc) and ((exitRequest = EMPTY) or (exitRequest = " ")) then
  13.       go("FOUND")
  14.     else
  15.       if (exitRequest = EMPTY) or (exitRequest = " ") then
  16.         go("R3+")
  17.       else
  18.         go("Need")
  19.       end if
  20.     end if
  21.   else
  22.     go("R1")
  23.   end if
  24. end
  25.